/*
 * analyzer.h
 *
 *  Created on: 07/10/2013
 *      Author: vitor
 */

#ifndef ANALYZER_H_
#define ANALYZER_H_

#include <stdio.h>
#include <string.h>
#include "string_int_list.h"

#define BASE_DATA 0
#define BASE_TEXT 4096

typedef struct _instruction {
	unsigned int opcode;
	unsigned int rs;
	unsigned int rt;
	unsigned int rd;
	short imm;
	unsigned int funct;
} instrInfo;

void assemble(char* inputFileName, char* outputFileName);

void (*handleITypeInstruction[])(int opcode);

#endif /* ANALYZER_H_ */
